 |
 |
 |
 |
#137543 - 07/05/01 11:05 PM
[6.0x] UBB Headers & Footers via SSI - version 0.9b Beta
|
Moderator / Template Diva
Registered: 03/04/00
Posts: 3368
Loc: College
|
What it does is pull UBB's header and footer into any SSI-enabled page. The header includes the Style Templates Header & Header Insert field, as well as the UBB logo and link line. The footer includes all the copyright stuff and the Style Templates footer field. This allows you to integrate your site pages into your UBB, so if you want to keep the whole site looking the same, you only have to edit one place (the UBB control panel) instead of the cpanel and all your other pages. It was originally created with the use of Compact Headers in mind, which is why it references the $standard_title_table (logo image and link line) variable... but because most people don't use that, the primary version is for just the standard (non-Compact) UBB headers. (Note: the standard version hasn't really been tested very well, because I don't have a UBB that doesn't have Compact Headers on it. So please report any bugs you find.) This is a really simple mod... It's pretty minimalist, and doesn't really use any original code. So I'm sure I'll get chewed out by some of the more experienced hackers. But hey, I figure some people might be able to use it. The hack works perfectly on my site. But that is an admittedly limited resource for testing. So please report back any bugs you find with either the standard or compact version. And be sure to read the readme!!! 7.8.01 - Updated to v0.9b. Non hard-coded Who's Online implementation. And better Perl syntax. Thanks a lot to LK and MasterMind for their help!! Hope you like! Click here to download . Click here for a demo . ---Skorpion [color:#000000" SIZE="1][ July 08, 2001 07:42 PM: Message edited by: Skorpion ][/color]
_________________________
Don't put that signature in your mouth! You don't know where it's been!
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#137545 - 07/06/01 08:38 AM
Re: [6.0x] UBB Headers & Footers via SSI - version 0.9b Beta
|
Junior Member
Registered: 07/04/01
Posts: 9
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#137568 - 07/07/01 11:07 PM
Re: [6.0x] UBB Headers & Footers via SSI - version 0.9b Beta
|
Moderator / Template Diva
Registered: 03/04/00
Posts: 3368
Loc: College
|
omegatron: It DOES work, exactly the way I said it would. That's the way it works at my site too, for crying out loud! If you don't want it to link to your main forums page, change the address yourself. That has to be done manually in the ultimatebb.cgi code that you added in. Because at this time, I'm still working on a way for WoL to know the address of the page you're actually viewing. To quote the readme again, "I hope to fix this problem by making the hack integrate into WoL better in a future release." joey: Please provide me with a URL to the page in question, so I can see what you've done. And tell me exactly how the hack didn't work: Did it give you errors? Did it not display anything? You need to be more specific so I can help you troubleshoot. ---Skorpion
_________________________
Don't put that signature in your mouth! You don't know where it's been!
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#137574 - 07/08/01 10:58 AM
Re: [6.0x] UBB Headers & Footers via SSI - version 0.9b Beta
|
Admin / Code Breaker
Registered: 03/24/01
Posts: 7396
|
Like in http://lkubb.dns2go.com/index.shtml ? <center> <table border="0" cellpadding="0" cellspacing="1" width="95%"> <tr bgcolor="#000033"><td> <table border="0" bgcolor="#000033" width="100%" cellpadding="4" cellspacing="1"> <tr bgColor="#ffffcc"><td bgColor="#ffffcc"> <FONT SIZE="1" FACE="Verdana, Helvetica, Arial" color="#000080"><A HREF="http://www.ubbdev.com/ubbcgi/ultimatebb.cgi?ubb=whos_online"><B>Currently Browsing The Boards:</A></B></FONT> <FONT SIZE="1" FACE="Verdana, Helvetica, Arial" color="#000000"><!--#exec cgi="cgi-bin/ultimatebb.cgi?ubb=whos_online_ssi"--></font></td></tr></table></td></tr></table></center> <FONT COLOR="#000000" SIZE="1">[ July 08, 2001 11:13 AM: Message edited by: LK ]</font>
_________________________
My Hacks Page (will be back with UBB 7!) UBBDev - We put the class into UBB.classic!
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#137584 - 07/09/01 06:15 PM
Re: [6.0x] UBB Headers & Footers via SSI - version 0.9b Beta
|
Moderator / Template Diva
Registered: 03/04/00
Posts: 3368
Loc: College
|
Oh yeah... If you have Compact Headers installed, you get the login/logout thing. But you have to have C.H. installed, otherwise the variable you're wanting isn't part of the variable that gets called.
And as for the registered members line, I don't think that is possible, because that is code specific to forum_summary. If you wanted, you could probably find the code in ubb_forum_summary.cgi that retrieves that number, and copy it into ubb_ssi.cgi. Then call the variable in the template file. But I don't think it's a good thing to have in the regular version, because it would be too redundant, and I'm not sure how cache-friendly this hack, or that addition to it, would be.
---Skorpion
_________________________
Don't put that signature in your mouth! You don't know where it's been!
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#137590 - 01/14/02 02:11 PM
Re: [6.0x] UBB Headers & Footers via SSI - version 0.9b Beta
|
I type Like navaho
Registered: 03/10/00
Posts: 25580
Loc: Texas
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|